<?php
function dblookup($query) {
require_once 'config.php';
  // Get the search variable from URL

//connect to your database ** EDIT REQUIRED HERE **
mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS); //(host, username, password)

//specify database ** EDIT REQUIRED HERE **
mysql_select_db(MYSQL_DB) or die("Unable to select database"); //select which database we're using


$results=mysql_query($query);

return $results; }
?>

